package org.dromara.teacher.domain.bo;

import org.dromara.teacher.domain.XjClassInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 班级信息业务对象 xj_class_info
 *
 * @author xjb
 * @date 2024-12-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = XjClassInfo.class, reverseConvertGenerate = false)
public class XjClassInfoBo extends BaseEntity {

    /**
     * 班级主键id
     */
    @NotBlank(message = "班级主键id不能为空", groups = { EditGroup.class })
    private String classId;

    /**
     * 班级名
     */
    @NotBlank(message = "班级名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String className;

    /**
     * 班级编码
     */
    @NotBlank(message = "班级编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String classCode;

    /**
     * 班级人数
     */
    @NotNull(message = "班级人数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long classStudentNum;

    /**
     * 班级负责人
     */
    @NotBlank(message = "班级负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String calssLeder;


}
